﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="QLDonHang.ascx.cs" Inherits="Admin_QLDonHang" %>

<link rel="stylesheet" type="text/css" href="../Style/style.css" />
<table border="0" cellpadding="0" cellspacing="0" style="width: 700px">
    <tr>
        <td style="width: 9px" align="left">
            <img src="Images/left1.png" /></td>
        <td background="Images/midle1.png" style="width: 685px" align="center" id="textmenu">
            Đơn đặt hàng</td>
        <td style="width: 9px" align="right">
            <img src="Images/right1.png" /></td>
    </tr>
    <tr>
        <td id="bordermenu" align="center" background="Images/bg-contend.jpg" colspan="3" style="height: 15px;width: 700px;">
            <asp:Panel ID="Panel1" runat="server" Width="680px">
                <br />
                <asp:GridView ID="gvwOrder" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="#c9c8c8" BorderStyle="Double" BorderWidth="3px"
                    CellPadding="4" DataKeyNames="OrderID" GridLines="Horizontal" OnPageIndexChanging="gvwOrder_PageIndexChanging" Width="680px" OnSelectedIndexChanging="gvwOrder_SelectedIndexChanging">
                    <RowStyle BackColor="WhiteSmoke" ForeColor="#A62800" />
                    <Columns>
                        <asp:BoundField DataField="OrderID" HeaderText="M&#227;" ReadOnly="True" />
                        <asp:BoundField DataField="OrderDate" HeaderText="Ng&#224;y đặt" />
                        <asp:BoundField DataField="ReceiverName" HeaderText="T&#234;n người nhận" ReadOnly="True" />
                        <asp:BoundField DataField="OrderAddress" HeaderText="Địa chỉ" />
                        <asp:BoundField DataField="OrderStatus" HeaderText="Trạng th&#225;i" />
                        <asp:CommandField ShowSelectButton="True" SelectText="Chi tiết" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#333333" />
                    <PagerStyle BackColor="#F6CAB8" ForeColor="White" HorizontalAlign="Center" />
                    <EmptyDataTemplate>
                        &nbsp;
                    </EmptyDataTemplate>
                    <SelectedRowStyle BackColor="#F6CAB8" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#A62800" BorderColor="#c9c8c8" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
                <br />
                <table border="0" cellpadding="0" cellspacing="0" style="width: 500px">
                    <tr>
                        <td style="width: 150px; height: 30px;padding-right: 5px;" align="right">
                            <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="#A62800" Text="Trạng thái: "></asp:Label></td>
                        <td style="width: 350px; height: 30px" align="left">
                            <asp:DropDownList ID="ddlStatus" runat="server" BackColor="WhiteSmoke" Font-Bold="True"
                                ForeColor="#A62800" Width="134px">
                                <asp:ListItem Value="Undelivered">Undelivered</asp:ListItem>
                                <asp:ListItem>Delivered</asp:ListItem>
                            </asp:DropDownList>
                            <asp:TextBox ID="txtOrderID" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                                ForeColor="#A62800" Visible="False"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 150px; height: 30px">
                        </td>
                        <td style="width: 350px; height: 30px" align="left">
                            <asp:Button ID="btnUpdate" runat="server" BackColor="WhiteSmoke" BorderColor="#A62800"
                                BorderStyle="Outset" Font-Bold="True" ForeColor="#A62800" Text="Cập nhật" Width="83px" OnClick="btnUpdate_Click" /></td>
                    </tr>
                </table>
                <br />
                <br />
            </asp:Panel>
            <br />
        </td>
    </tr>
</table>
